using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using Fycayy.Common;
using System.Data;
using GoldenAgeHelper.common;

namespace Fycayy.Controls
{
    class ComboxEx : ComboBox
    {
        public ComboType type = ComboType.None;
        public ComboxEx(ComboType ctype)
        {
            type = ctype;
        }

        private Thread load;

        protected override void OnCreateControl()
        {

            base.OnCreateControl();
        }

        private void BeginLoad()
        {
            DataSet ds = new DataSet();
            ds.ReadXml("config/envir.config");
            while (true)
            {
                if (ds.Tables.Count > 0)
                {
                    for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
                    {
                        CboItem item = new CboItem();
                    }
                }
            }
        }
    }

    enum ComboType
    {
        Envir,
        City,
        None
    }
}
